from django.shortcuts import render
from django.http import HttpResponse
from jsonrpc import jsonrpc_method


# Create your views here.

def person(request):
    return HttpResponse([1, 2, 3])


@jsonrpc_method('common.persons')
def persons(request):
    return [1, 2, 3]


@jsonrpc_method('req')
def person_s(request, *params):
    # arr = []
    # for i in params:
    #     arr.append(i)
    # print(params)
    return list(params)
